package com.hht.study.javaBase.io;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.util.Scanner;

/**
 * @author hht
 * @date 2022/3/4
 */
public class IoTest {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (true){
            String next = scanner.next();
            System.out.println(next);
            if("exit".equals(next)){
                scanner.close();
                break;
            }
        }
    }

    public static void main2(String[] args) {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    }
}
